import request from '@/utils/request'

export const login = (form) => 
    request({
        url: '/auth/token',
        method: 'post',
        params:{ 
            loginName:form.loginName,
            password:form.password
        }

    })
 // 获取指定的用户   
export const get_entCode_by_user = (code) => 
    request({
        url: '/sys/user/get_user',
        method: 'get',
        params:{ 
            code
        } 
    })
 // 短信验证码登录   
export const login_from_mobile = (form) => 
    request({
        url: '/auth/token_by_sms',
        method: 'post',
        params:{ 
            mobile:form.mobile,
            captchaCode:form.verifyCode
        }

    })